import { get, post } from '@/utils/request'

const BASE_URL = window.baseUrl.action
//  字典-获取字典信息
export function getDict(query) {
  return get(BASE_URL + '/dictItems/listByCode/', query)
}
// 出入境-分页
export function pageList(query) {
  return post(BASE_URL + '/entryexit/pageList', query)
}
// 出入境-详情
export function details(query) {
  return get(BASE_URL + '/entryexit/details/' + query.id)
}
// 出入境-新增
export function add(query) {
  return post(BASE_URL + '/entryexit/insert', query)
}
// 出入境-修改
export function update(query) {
  return post(BASE_URL + '/entryexit/update', query)
}
// 查询运维人员
export function productList(query) {
  return post(BASE_URL + '/user/pageList', query)
}
// 出入境-删除
export function deleteItem(query) {
  return get(BASE_URL + '/entryexit/delete/' + query.id)
}
// 导出文件
export function exportExit(query) {
  return post(BASE_URL + '/entryexit/export', query)
}
// 上传文件
export function upload(query) {
  return post(BASE_URL + '/attachment/upload', query)
}
